package com.kilon.workfaq.service.read.impl;

import com.kilon.workfaq.entity.ImagePo;
import com.kilon.workfaq.mapper.read.ImageReadMapper;
import com.kilon.workfaq.service.read.ImageReadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 图片表(Image)表服务实现类
 *
 * @author makejava
 * @since 2023-02-22 23:24:10
 */
@Service("imageReadService")
public class ImageReadServiceImpl implements ImageReadService {
    @Resource
    private ImageReadMapper imageReadMapper;

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    @Override
    public ImagePo queryById(String id) {
        return this.imageReadMapper.queryById(id);
    }

    /**
     * 查询全部数据
     *
     * @return 实例对象
     */
    @Override
    public List<ImagePo> queryAll(ImagePo image) {
        return this.imageReadMapper.queryAll(image);
    }
}
